GtkModelMenuItem: Add some property notification
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jan 2014 02:50:29 +0000 (21:50 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jan 2014 02:52:36 +0000 (21:52 -0500)
GtkModelMenuItem emits no property notification, since none of its
properties are readable. But the toggled property is just a proxy
for GtkCheckMenuItem::active, so we should ensure that property
notification is emitted for the ::active property.

gtk/gtkmodelmenuitem.c

index c698a52e4e9caa30e9ab991e5ee91f6e2fcb5f43..2235ff7e68d8105cc5caa98cf02f49bb75a06119 100644 (file)
@@ -308,6 +308,7 @@ gtk_model_menu_item_set_property (GObject *object, guint prop_id,
 
     case PROP_TOGGLED:
       _gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), g_value_get_boolean (value));
+      g_object_notify (object, "active");
       break;
 
     case PROP_ACCEL: